#pragma once
#ifndef CLIB_LISTEN_H
#define CLIB_LISTEN_H

#include "clib_type.h"
#include "clib_queue.h"
#include "clib_sock.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct tcp_listen_s
{
    i32_t       	sock_id;
	i32_t           on_ep;
	clib_sock_t    *sock;
	i32_t           backlog;
	i32_t           accept_n;    
	clib_queue_t 	accept;
	clib_spinlock_t lock;
} tcp_listen_t;

#ifdef __cplusplus
}
#endif

#endif 